/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

/**
 *
 * @author Pham
 */
public class DTOExport {
    String exportId;
    Date exportDate;
    DTOOrder dtoOrder;
    
    //accessor
    public String getExportId() {
        return exportId;
    }

    public void setExportId(String exportId) {
        this.exportId = exportId;
    }

    public Date getExportDate() {
        return exportDate;
    }

    public void setExportDate(Date exportDate) {
        this.exportDate = exportDate;
    }

    public DTOOrder getDtoOrder() {
        return dtoOrder;
    }

    public void setDtoOrder(DTOOrder dtoOrder) {
        this.dtoOrder = dtoOrder;
    }
    
    
    //constructor
    public DTOExport() {
    }
    
    public DTOExport(ResultSet rs) throws SQLException
    {
        this.exportId = rs.getString("export_id");
        this.exportDate = rs.getDate("export_date");
        this.dtoOrder = (new BLL.BLLOrder()).getOrderbyId(rs.getString("order_id"));
    }
}
